package com.xinqi.xinqidev.publisher.consumer.config;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author xin麒
 * @date 2023/11/21 16:52
 */
@Configuration
//@EnableConfigurationProperties

public class RabbitMQConfig {
    @Bean//https://www.bilibili.com/video/BV1mN4y1Z7t9?p=15
    public MessageConverter jacksonMessageConvertor(){
        return new Jackson2JsonMessageConverter();
    }

}
